<?php /* Smarty version Smarty-3.1.18, created on 2015-09-28 14:32:09
         compiled from "E:\www\gfour\ws\Admin\View\Chat\box_content.html" */ ?>
<?php /*%%SmartyHeaderCode:1783356000b0a925999-89066388%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f941c3a722d86ef9496f728d244cb680a11577f9' => 
    array (
      0 => 'E:\\www\\gfour\\ws\\Admin\\View\\Chat\\box_content.html',
      1 => 1443421926,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1783356000b0a925999-89066388',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_56000b0aa0ffc6_88683860',
  'variables' => 
  array (
    '_C' => 0,
    'ad' => 0,
    'group' => 0,
    'group_id' => 0,
    'id' => 0,
    'action' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56000b0aa0ffc6_88683860')) {function content_56000b0aa0ffc6_88683860($_smarty_tpl) {?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css"/>
		<script>
		function changeBoxType()
		{
			var type = $(".changeType option:selected").val();
			
			if(type==2)
			{
				$(".type2").show();
			}
			else
			{
				$(".type2").hide();
			}
			
		}
		</script>
	</head>
	<body>
	<div class="am-g">
		 <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		<div class="am-tabs am-margin" data-am-tabs="{ noSwipe: 1}">
    <ul class="am-tabs-nav am-nav am-nav-tabs">
      <li class="am-active"><a hidefocus="true" href="#tab1">弹框详情</a></li>
      
</ul>

    <form class="am-tabs-bd am-form hy-js-form" style="touch-action: pan-y; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
      
      <div class="am-tab-panel am-fade am-active am-in" id="tab1">
      	<div class="am-form-group">
          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              弹框文字
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input type="text" name="name" value="<?php echo $_smarty_tpl->tpl_vars['ad']->value['name'];?>
" class="am-input-sm">
            </div>
          </div>
			</div>
    	
		<div class="am-form-group">
          
		   <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              弹框图片
            </div>
            <div class="am-u-sm-4">
              <input type="text" name="pic" class="am-input-sm" value="<?php echo $_smarty_tpl->tpl_vars['ad']->value['pic'];?>
">
             
            </div>
            <div class="am-u-sm-1">
            	 <img id="hy-thumb" style="height: 30px;" <?php if ($_smarty_tpl->tpl_vars['ad']->value['pic']) {?>src="/ws<?php echo $_smarty_tpl->tpl_vars['ad']->value['pic'];?>
"<?php } else { ?> src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
/ws/images/logo2.png" <?php }?>>
            	</div>
             <div class="am-u-sm-4 am-u-end">
             	<button class="am-btn am-btn-primary am-btn-xs hy-js-uploadimg" >上传</button>
          </div>
             </div>
			</div>
    	
		<div class="am-form-group">
          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
             弹框描述
            </div>
            <div class="am-u-sm-4 am-u-end">
               <textarea rows="3" name="content" placeholder="供后台管理使用"><?php echo $_smarty_tpl->tpl_vars['ad']->value['content'];?>
</textarea>
            </div>
          </div>

          </div>
    	
		<div class="am-form-group">
		  <div  class="am-g am-margin-top hy-js-menupanel ">
							<div class="am-u-sm-2 am-text-right">弹框类型</div>
							<div class="am-u-sm-4 am-u-end">
								<select name="type"   onchange="changeBoxType()" class="changeType" disabled=disabled>
									<?php if ($_smarty_tpl->tpl_vars['group']->value['type']!=1) {?>
									<option <?php if ($_smarty_tpl->tpl_vars['ad']->value['type']==2) {?> selected="selected" <?php }?> value="2">奖项框</option>
									<option <?php if ($_smarty_tpl->tpl_vars['ad']->value['type']==3) {?> selected="selected" <?php }?> value="3">谢谢参与框</option>
									<?php }?>
									<?php if ($_smarty_tpl->tpl_vars['group']->value['type']!=2) {?>
									<option <?php if ($_smarty_tpl->tpl_vars['ad']->value['type']==1) {?> selected="selected" <?php }?> value="1">个人信息框</option>
									<?php }?>
								</select>
								<input type="hidden" name="type" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['ad']->value['type'])===null||$tmp==='' ? 2 : $tmp);?>
">
							</div>
						</div>
			</div>
				
								
     		<div class="am-form-group">
						<div  class="am-g am-margin-top hy-js-menupanel ">
							<div class="am-u-sm-2 am-text-right">是否外链</div>
							<div class="am-u-sm-4 am-u-end">
							<div class="am-btn-group" data-am-button="">
								<label class="am-btn am-btn-default am-btn-xs  <?php if ($_smarty_tpl->tpl_vars['ad']->value['is_extend_links']==1) {?> am-active<?php } else { ?><?php }?>">
									<input type="radio" name="is_extend_links" value="1" <?php if ($_smarty_tpl->tpl_vars['ad']->value['is_extend_links']==1) {?> checked="checked" <?php } else { ?><?php }?>   id="is_extend_links1"> 是
								</label>
								<label class="am-btn am-btn-default am-btn-xs  <?php if ($_smarty_tpl->tpl_vars['ad']->value['is_extend_links']==0) {?>am-active<?php } else { ?><?php }?>">
									<input type="radio" name="is_extend_links" <?php if ($_smarty_tpl->tpl_vars['ad']->value['is_extend_links']==0) {?> checked="checked" <?php } else { ?><?php }?> value="0" id="is_extend_links2">否
								</label>
							</div>
						</div>
					</div>
    		</div>
		<div class="am-form-group">
		<div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
             外链地址
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input name="url" value="<?php echo $_smarty_tpl->tpl_vars['ad']->value['url'];?>
" type="text" class="am-input-sm">
            </div>
            
          </div>
		  
		  </div>
    	
		<div class="am-form-group type2">
          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              奖项优先级
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input type="text" name="prize" value="<?php echo $_smarty_tpl->tpl_vars['ad']->value['prize'];?>
" class="am-input-sm"  placeholder="1表示1等奖，2表示2等级。谢谢参与和其他请置0">
            </div>
          </div>
		  </div>
    	
		<div class="am-form-group type2">
		  <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              中奖概率
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input type="text" name="pby" value="<?php echo $_smarty_tpl->tpl_vars['ad']->value['pby'];?>
" class="am-input-sm"  placeholder="请输入正整数">
            </div>
          </div>
		  </div>
    	
		<div class="am-form-group type2">
		   <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              限制触发人数
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input type="text" name="limitnums" value="<?php echo $_smarty_tpl->tpl_vars['ad']->value['limitnums'];?>
" class="am-input-sm"  placeholder="请输入正整数">
            </div>
          </div>
		  </div>
    	
	
  
          


        
    
       <input type="hidden" name="group_id" value="<?php echo $_smarty_tpl->tpl_vars['group_id']->value;?>
" />
 		<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
" />
		 </div>
    </form>
    <div class="am-margin">
    <button type="button" class="am-btn am-btn-primary hy-js-submit am-btn-xs">提交保存</button>
    
  </div>
  </div>
	</div>	
	 
	  <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/editor/kindeditor.js"></script>
	<script type="text/javascript">
	    hy_uploadimg('/ad',{},function(result){
	    	if(typeof(result[0])!='undefined')
	    	{
	        	$('#hy-thumb').attr('src',"/ws"+result[0]);
	        	$('input[name=pic]').val(result[0]).focus();
	       }
	    })
	    
	    hy_submit('index.php?g=admin&m=chat&a=<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
');
		changeBoxType('<?php echo $_smarty_tpl->tpl_vars['ad']->value['type'];?>
');
	</script>
	</body>
</html>
<?php }} ?>
